/* 预约系统通用样式 */

/* 重置和基础样式 */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

/* 容器通用样式 */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* 卡片样式 */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  overflow: hidden;
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #fafafa;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 15px 20px;
  border-top: 1px solid #f0f0f0;
  background-color: #fafafa;
}

/* 标题样式 */
.section-title {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #d32f2f;
  color: white;
}

.btn-primary:hover {
  background-color: #c62828;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* 表单样式 */
.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-input:focus {
  outline: none;
  border-color: #d32f2f;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .card-body {
    padding: 15px;
  }
  
  .card-header,
  .card-footer {
    padding: 12px 15px;
  }
  
  .section-title {
    font-size: 15px;
  }
  
  .btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* 移动端适配 - 安全区域 */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
  }
}

/* 加载状态 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #666;
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.empty-text {
  font-size: 16px;
  margin-bottom: 5px;
}

.empty-desc {
  font-size: 14px;
  color: #ccc;
}

/* 状态标签 */
.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.status-success {
  background-color: #e8f5e8;
  color: #52c41a;
}

.status-warning {
  background-color: #fff7e6;
  color: #fa8c16;
}

.status-error {
  background-color: #fff2f0;
  color: #ff4d4f;
}

.status-info {
  background-color: #e6f7ff;
  color: #1890ff;
} 